package org.order.service;

import io.seata.core.context.RootContext;
import org.order.bean.OrderBean;
import org.order.dao.OrderDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("orderService")
public class OrderServiceImp implements  OrderService{

    @Autowired
    OrderDao orderDao;

    @Override
    public void insertOrder(OrderBean orderBean,String sjid) throws Exception {
        RootContext.bind(sjid);
        orderDao.insertOrder(orderBean);
        throw  new Exception("出异常了");
    }
}
